import React, {Component} from 'react';
import {StyleSheet, Text, View, Image, ScrollView} from 'react-native';
import {Button, WhiteSpace, WingBlank, Flex} from '@ant-design/react-native';
import {saveParkOrder} from '~/store/parkorder';
import {connect} from 'react-redux';
import {saveSystem} from '~/store/system';

const mapGetter = (state) => {
    return {
        userinfo: state.userinfo,
        system: state.system,
        parkorder: state.parkorder,
    };
};

const mapSetter = (dispatch) => {
    return {
        onSave: (data) => {
            dispatch(saveParkOrder(data));
        },
    };
};
class Buytype extends Component {
    static navigationOptions = {
        title: '付款方式',
    };
    constructor(props) {
        //调用基类的所有的初始化方法
        super(props);
        // 设置当前组件的属性
        this.state = {};
    }
    render() {
        return (
            <Flex direction={'column'} style={{width: '100%', paddingBottom: 10, marginTop: 10}}>
                <View style={{width: '92%', marginLeft: '4%', marginRight: '4%', backgroundColor: 'white', borderRadius: 5}}>
                    {/*<Text style={styles.infoTitle}>1.什么是零首付买车位？ </Text>*/}
                    {/*<Text style={styles.infoContent}>零首付买车位，就是业主不用花自己的钱，就可以买下心仪的车位。 </Text>*/}
                    {/*<Text style={styles.infoTitle}>2.买车位的钱哪里来？</Text>*/}
                    {/*<Text style={styles.infoContent}>从银行来。由业主向银行申请信用贷款，银行先行为业主支付车位款。 </Text>*/}
                    {/*<Text style={styles.infoTitle}>3.贷款需要还吗？</Text>*/}
                    {/*<Text style={styles.infoContent}>因为返现金，帮助业主化解了还贷款的压力。实际上业主是不用自己掏钱还贷款的。</Text>*/}
                </View>
            </Flex>
        );
    }
}

const styles = StyleSheet.create({
    infoTitle: {
        fontSize: 16,
        margin: 5,
        marginLeft: 10,
    },
    infoContent: {
        fontSize: 14,
        margin: 5,
        marginLeft: 10,
    },
});
export default connect(mapGetter, mapSetter)(Buytype);
